/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package view.inventory;

import java.util.Collections;
import java.util.List;
import model.inventory.Dept;

/**
 *
 * @author Yusup Jauhari Shandi <in.visi>
 */
public class DeptNode extends Dept{
    private List<DeptNode> children;

    public DeptNode() {
    }

    public DeptNode(int id, String kode, String nama, Integer induk, Integer tinkat,List<DeptNode> children) {
        super(id, kode, nama, induk, tinkat);
        this.children = children;
        if (this.children == null) {
            this.children = Collections.emptyList();
        }
    }

    public DeptNode(List<DeptNode> children) {
        
        this.children = children;
    }

   
    
    
    

    public List<DeptNode> getChildren() {
        return children;
    }

    public void setChildren(List<DeptNode> children) {
        this.children = children;
    }
    
    @Override
     public String toString() {
        return super.getNama();
    } 
    
    
}
